//
//  HWShouHuoDiZhiCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/21.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWShouHuoDiZhiCell.h"

@interface HWShouHuoDiZhiCell()

@end

@implementation HWShouHuoDiZhiCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier  {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
        
    }
    
    return  self;
}


- (void)setupUI {
    
      self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(12, 0, 80, 40)];
      self.nameLabel.text = @"收获人";
      self.nameLabel.textColor = RGB(51, 51, 51);
      self.nameLabel.font = [UIFont systemFontOfSize:14];
      [self.contentView addSubview:self.nameLabel];
    
    
        self.nametextField = [[UITextField alloc]initWithFrame:CGRectMake(80+12, 0, kScreenW-75-20, 40)];
        self.nametextField.font = [UIFont systemFontOfSize:12];
        self.nametextField.textColor = RGB(102, 102, 102);
       // self.nametextField.delegate = self;
      //  self.nametextField.text = @"请填写收货人姓名";
        
        NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:@"请填写收货人姓名" attributes:
             @{NSForegroundColorAttributeName:RGB(153, 153, 153),
               NSFontAttributeName:[UIFont boldSystemFontOfSize:12]}
             ];
        self.nametextField.attributedPlaceholder  = attrString;
     //   self.nametextField.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview: self.nametextField];
    
    
    
     self.fengexianView = [[UIView alloc]initWithFrame:CGRectMake(0, 39, kScreenW, 1)];
     self.fengexianView.backgroundColor = RGB(232, 232, 242);
     [self.contentView addSubview:self.fengexianView];
    
}
@end
